package behaviorlearning;

import java.util.LinkedList;
import java.util.List;

// This is just an auxiliary class, so everything is public :)

public class WargusGoalTree {
	public String m_goal;
	public List<Case> m_cases;
	public List<WargusGoalTree> m_subgoals;	
	
	public WargusGoalTree() {
		m_cases = new LinkedList<Case>();
		m_subgoals = new LinkedList<WargusGoalTree>();
	}
	
	public String toString() {
		String s = "";
		
		s = s + m_goal + ": ";
		for(Case c:m_cases) s = s + c.m_ID + " ";
		s = s + "\n";
		
		s = s + "Subtrees {\n";
		
		for(WargusGoalTree t:m_subgoals) {
			s = s + "  " + t.toString();
		}
		s = s + "}\n";
		
		return s;
	}
}
